#!/bin/bash
serverName=$1
fileNmae=$2
fromUser=$3
toUser=$4
chmod 777 /u01/app/oracle/admin/$serverName/dpdump/$fileNmae.dmp
impdp system/ufgov1234@$serverName directory=DATA_PUMP_DIR dumpfile=$fileNmae.dmp REMAP_SCHEMA=$fromUser:$toUser transform=segment_attributes:n
rm -rf /u01/app/oracle/admin/$serverName/dpdump/$fileNmae.*
echo "delete $fileNmae.dmp"
